package com.comp5900.impl.huffman;

public abstract class HuffmanTree implements Comparable<HuffmanTree> {
	public int frequency; //the frequency of this tree

	public HuffmanTree(int _frequency) {
		frequency = _frequency;
	}
 
	// compares the frequency
	public int compareTo(HuffmanTree tree) {
		return frequency - tree.frequency;
	}
}